package com.zzf.concurrent.example.ticket;

import com.zzf.concurrent.example.ticket.bean.TicketThread;

/**
 * @author GaoFeng2017
 * @date 2019/8/4 21:53
 */
public class TicketExample {

    /** 模拟简易的银行叫号程序 */
    public static void main(String[] args) {

        Thread ticketThread1 = new TicketThread("柜台一");
        ticketThread1.start();

        Thread ticketThread2 = new TicketThread("柜台二");
        ticketThread2.start();

        Thread ticketThread3 = new TicketThread("柜台三");
        ticketThread3.start();

    }
}
